﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Graph1.aspx.vb" Inherits="JamaicanKitchen.Graph1" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
    <p>
        <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1">
            <series>
                <asp:Series ChartType="Bar" Name="Series1" XValueMember="Dish" 
                    YValueMembers="CountOfID">
                </asp:Series>
            </series>
            <chartareas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </chartareas>
        </asp:Chart>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:JamaicanConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:JamaicanConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Dish], [CountOfID] FROM [SumOfLikes] WHERE ([CountOfID] &gt; ?) ORDER BY [CountOfID] DESC">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="CountOfID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
</asp:Content>
